package com.mxdx.edu.service.impl;

import com.mxdx.edu.dao.ResumeDao;
import com.mxdx.edu.model.ResumeInfo;
import com.mxdx.edu.service.IResumeService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

@Service
public class ResumeServiceImpl implements IResumeService{

    @Resource
    private ResumeDao resumeDao;

    @Override
    public void save(ResumeInfo resumeInfo) {
        resumeDao.save(resumeInfo);
    }

	@Override
	public Map<String, Object> findResumeMapByMap(Map<String, Object> param) {
		List<Map<String, Object>> list = resumeDao.findListByMap(param);
		if(null != list && list.size() > 0) {
			Map<String, Object> resumeMap = list.get(0);
			return resumeMap;
		}
		return null;
	}

	@Override
	public void update(ResumeInfo resumeInfo) {
		resumeDao.update(resumeInfo);
	}
}
